package org.intrasearch.frontend;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy;
import org.intrasearch.frontend.views.MainSearchPage;
import org.intrasearch.frontend.views.StartIndexingPage;

/**
 * PATISDG 06.11.2009
 */
public class WicketApplication extends WebApplication
{
    public WicketApplication()
    {
        mount(new QueryStringUrlCodingStrategy("/search", MainSearchPage.class));
        mount(new QueryStringUrlCodingStrategy("/indexing", StartIndexingPage.class));
    }

    @Override
    public Class<? extends Page> getHomePage()
    {
        return MainSearchPage.class;
    }
}
